from typing import *

class Solution:
    def queryString(self, s: str, n: int) -> bool:
        return all(bin(i)[2:] in s for i in range(1, n + 1))



for i in range(10):
    print(bin(i),bin(i)[2:])